﻿using DI.Service.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DI.Service.Impl
{
    public class SaveImpl : ISave
    {
        private readonly IConfig config;

        public SaveImpl(IConfig config)
        {
            this.config = config;
        }

        public void Save(string content, string name)
        {
            var server =  config.GetValue("server");
            Console.WriteLine($"向服务器{server}为{name}发送{content}");
        }
    }
}
